<template>
  <div class="box">
    <h3>Child</h3>
  </div>
</template>

<script lang="ts" setup>
import { useAttrs } from 'vue'
const attrs = useAttrs(); // 得到attrs对象

defineProps<{
  text: string
}>()

const emit = defineEmits<{
  (e: 'xxx'): void
}>()

console.log(attrs)

</script>

<style lang="less" scoped>
</style>
